import java.util.*; 
import java.awt.*;

public class T_1 {
	public static void main(String arg[]){

		//Test_ArrayList();
		//ArrayParam(new Integer(1), new Double(1.0));
		System.out.println(TestThrow(2));
		System.out.println(TestThrow(3));
	}
	
	public static int TestThrow(int n) {
		try {
			int r = n * n;
			return r;
		}
		finally {
			if (n == 2)
				return 0;
		}
	}
	
	public static void ArrayParam(Object... obj) {
		for (Object o : obj) {
			System.out.print(o.getClass().getName() + "\n");
		}
	}
	
	public static void Test_ArrayList() {
		ArrayList<String> alInt = new ArrayList<String>(10);
		
		for (int i = 0; i < 5; i++)
			alInt.add(new String("Value = " + i));
		
		for (String s : alInt)
			System.out.printf("%-15s", s);
		
		System.out.printf("size is : %d\n  ", alInt.size());
		
		alInt.clear();
		alInt.trimToSize();
		System.out.printf("size is : %d\n  ", alInt.size());
		

		int[] arrInt = new int[10];
		System.out.printf("%d \n", arrInt.length);
	}
	
	public void ShowInfo() {
		System.out.print("In T_1 !!! ");
	}
}

class T_1_deriver extends T_1 {
	public void ShowInfo() {
		System.out.print("In T_1_deriver !! \n");
		System.out.print("The Base Class Output is : ");
		super.ShowInfo();
	}
}